import axios from 'axios'

const request = axios.create({
    baseURL: 'https://www.fastmock.site/mock/8004aa673ba83b2f6a0e6ddf3de8106d/api'
})

// 请求拦截器
request.interceptors.request.use(function (config) {
   // Do something before request is sent
   
   return config;
}, function (error) {
   // Do something with request error
   return Promise.reject(error);
});
// 相应拦截器

export default request